package com.gridmobi.xrtb.domain.adn;

import java.util.ArrayList;
import java.util.List;

public class PublisherSubOpExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public PublisherSubOpExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andPublisheridIsNull() {
            addCriterion("publisherid is null");
            return (Criteria) this;
        }

        public Criteria andPublisheridIsNotNull() {
            addCriterion("publisherid is not null");
            return (Criteria) this;
        }

        public Criteria andPublisheridEqualTo(Integer value) {
            addCriterion("publisherid =", value, "publisherid");
            return (Criteria) this;
        }

        public Criteria andPublisheridNotEqualTo(Integer value) {
            addCriterion("publisherid <>", value, "publisherid");
            return (Criteria) this;
        }

        public Criteria andPublisheridGreaterThan(Integer value) {
            addCriterion("publisherid >", value, "publisherid");
            return (Criteria) this;
        }

        public Criteria andPublisheridGreaterThanOrEqualTo(Integer value) {
            addCriterion("publisherid >=", value, "publisherid");
            return (Criteria) this;
        }

        public Criteria andPublisheridLessThan(Integer value) {
            addCriterion("publisherid <", value, "publisherid");
            return (Criteria) this;
        }

        public Criteria andPublisheridLessThanOrEqualTo(Integer value) {
            addCriterion("publisherid <=", value, "publisherid");
            return (Criteria) this;
        }

        public Criteria andPublisheridIn(List<Integer> values) {
            addCriterion("publisherid in", values, "publisherid");
            return (Criteria) this;
        }

        public Criteria andPublisheridNotIn(List<Integer> values) {
            addCriterion("publisherid not in", values, "publisherid");
            return (Criteria) this;
        }

        public Criteria andPublisheridBetween(Integer value1, Integer value2) {
            addCriterion("publisherid between", value1, value2, "publisherid");
            return (Criteria) this;
        }

        public Criteria andPublisheridNotBetween(Integer value1, Integer value2) {
            addCriterion("publisherid not between", value1, value2, "publisherid");
            return (Criteria) this;
        }

        public Criteria andSubidIsNull() {
            addCriterion("subid is null");
            return (Criteria) this;
        }

        public Criteria andSubidIsNotNull() {
            addCriterion("subid is not null");
            return (Criteria) this;
        }

        public Criteria andSubidEqualTo(String value) {
            addCriterion("subid =", value, "subid");
            return (Criteria) this;
        }

        public Criteria andSubidNotEqualTo(String value) {
            addCriterion("subid <>", value, "subid");
            return (Criteria) this;
        }

        public Criteria andSubidGreaterThan(String value) {
            addCriterion("subid >", value, "subid");
            return (Criteria) this;
        }

        public Criteria andSubidGreaterThanOrEqualTo(String value) {
            addCriterion("subid >=", value, "subid");
            return (Criteria) this;
        }

        public Criteria andSubidLessThan(String value) {
            addCriterion("subid <", value, "subid");
            return (Criteria) this;
        }

        public Criteria andSubidLessThanOrEqualTo(String value) {
            addCriterion("subid <=", value, "subid");
            return (Criteria) this;
        }

        public Criteria andSubidLike(String value) {
            addCriterion("subid like", value, "subid");
            return (Criteria) this;
        }

        public Criteria andSubidNotLike(String value) {
            addCriterion("subid not like", value, "subid");
            return (Criteria) this;
        }

        public Criteria andSubidIn(List<String> values) {
            addCriterion("subid in", values, "subid");
            return (Criteria) this;
        }

        public Criteria andSubidNotIn(List<String> values) {
            addCriterion("subid not in", values, "subid");
            return (Criteria) this;
        }

        public Criteria andSubidBetween(String value1, String value2) {
            addCriterion("subid between", value1, value2, "subid");
            return (Criteria) this;
        }

        public Criteria andSubidNotBetween(String value1, String value2) {
            addCriterion("subid not between", value1, value2, "subid");
            return (Criteria) this;
        }

        public Criteria andTypeIsNull() {
            addCriterion("type is null");
            return (Criteria) this;
        }

        public Criteria andTypeIsNotNull() {
            addCriterion("type is not null");
            return (Criteria) this;
        }

        public Criteria andTypeEqualTo(Byte value) {
            addCriterion("type =", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotEqualTo(Byte value) {
            addCriterion("type <>", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThan(Byte value) {
            addCriterion("type >", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThanOrEqualTo(Byte value) {
            addCriterion("type >=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThan(Byte value) {
            addCriterion("type <", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThanOrEqualTo(Byte value) {
            addCriterion("type <=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeIn(List<Byte> values) {
            addCriterion("type in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotIn(List<Byte> values) {
            addCriterion("type not in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeBetween(Byte value1, Byte value2) {
            addCriterion("type between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotBetween(Byte value1, Byte value2) {
            addCriterion("type not between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andMatchtypeIsNull() {
            addCriterion("matchtype is null");
            return (Criteria) this;
        }

        public Criteria andMatchtypeIsNotNull() {
            addCriterion("matchtype is not null");
            return (Criteria) this;
        }

        public Criteria andMatchtypeEqualTo(Byte value) {
            addCriterion("matchtype =", value, "matchtype");
            return (Criteria) this;
        }

        public Criteria andMatchtypeNotEqualTo(Byte value) {
            addCriterion("matchtype <>", value, "matchtype");
            return (Criteria) this;
        }

        public Criteria andMatchtypeGreaterThan(Byte value) {
            addCriterion("matchtype >", value, "matchtype");
            return (Criteria) this;
        }

        public Criteria andMatchtypeGreaterThanOrEqualTo(Byte value) {
            addCriterion("matchtype >=", value, "matchtype");
            return (Criteria) this;
        }

        public Criteria andMatchtypeLessThan(Byte value) {
            addCriterion("matchtype <", value, "matchtype");
            return (Criteria) this;
        }

        public Criteria andMatchtypeLessThanOrEqualTo(Byte value) {
            addCriterion("matchtype <=", value, "matchtype");
            return (Criteria) this;
        }

        public Criteria andMatchtypeIn(List<Byte> values) {
            addCriterion("matchtype in", values, "matchtype");
            return (Criteria) this;
        }

        public Criteria andMatchtypeNotIn(List<Byte> values) {
            addCriterion("matchtype not in", values, "matchtype");
            return (Criteria) this;
        }

        public Criteria andMatchtypeBetween(Byte value1, Byte value2) {
            addCriterion("matchtype between", value1, value2, "matchtype");
            return (Criteria) this;
        }

        public Criteria andMatchtypeNotBetween(Byte value1, Byte value2) {
            addCriterion("matchtype not between", value1, value2, "matchtype");
            return (Criteria) this;
        }

        public Criteria andStateIsNull() {
            addCriterion("state is null");
            return (Criteria) this;
        }

        public Criteria andStateIsNotNull() {
            addCriterion("state is not null");
            return (Criteria) this;
        }

        public Criteria andStateEqualTo(Byte value) {
            addCriterion("state =", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotEqualTo(Byte value) {
            addCriterion("state <>", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateGreaterThan(Byte value) {
            addCriterion("state >", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateGreaterThanOrEqualTo(Byte value) {
            addCriterion("state >=", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateLessThan(Byte value) {
            addCriterion("state <", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateLessThanOrEqualTo(Byte value) {
            addCriterion("state <=", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateIn(List<Byte> values) {
            addCriterion("state in", values, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotIn(List<Byte> values) {
            addCriterion("state not in", values, "state");
            return (Criteria) this;
        }

        public Criteria andStateBetween(Byte value1, Byte value2) {
            addCriterion("state between", value1, value2, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotBetween(Byte value1, Byte value2) {
            addCriterion("state not between", value1, value2, "state");
            return (Criteria) this;
        }

        public Criteria andAdvertiseridIsNull() {
            addCriterion("advertiserid is null");
            return (Criteria) this;
        }

        public Criteria andAdvertiseridIsNotNull() {
            addCriterion("advertiserid is not null");
            return (Criteria) this;
        }

        public Criteria andAdvertiseridEqualTo(Integer value) {
            addCriterion("advertiserid =", value, "advertiserid");
            return (Criteria) this;
        }

        public Criteria andAdvertiseridNotEqualTo(Integer value) {
            addCriterion("advertiserid <>", value, "advertiserid");
            return (Criteria) this;
        }

        public Criteria andAdvertiseridGreaterThan(Integer value) {
            addCriterion("advertiserid >", value, "advertiserid");
            return (Criteria) this;
        }

        public Criteria andAdvertiseridGreaterThanOrEqualTo(Integer value) {
            addCriterion("advertiserid >=", value, "advertiserid");
            return (Criteria) this;
        }

        public Criteria andAdvertiseridLessThan(Integer value) {
            addCriterion("advertiserid <", value, "advertiserid");
            return (Criteria) this;
        }

        public Criteria andAdvertiseridLessThanOrEqualTo(Integer value) {
            addCriterion("advertiserid <=", value, "advertiserid");
            return (Criteria) this;
        }

        public Criteria andAdvertiseridIn(List<Integer> values) {
            addCriterion("advertiserid in", values, "advertiserid");
            return (Criteria) this;
        }

        public Criteria andAdvertiseridNotIn(List<Integer> values) {
            addCriterion("advertiserid not in", values, "advertiserid");
            return (Criteria) this;
        }

        public Criteria andAdvertiseridBetween(Integer value1, Integer value2) {
            addCriterion("advertiserid between", value1, value2, "advertiserid");
            return (Criteria) this;
        }

        public Criteria andAdvertiseridNotBetween(Integer value1, Integer value2) {
            addCriterion("advertiserid not between", value1, value2, "advertiserid");
            return (Criteria) this;
        }

        public Criteria andOfferidIsNull() {
            addCriterion("offerid is null");
            return (Criteria) this;
        }

        public Criteria andOfferidIsNotNull() {
            addCriterion("offerid is not null");
            return (Criteria) this;
        }

        public Criteria andOfferidEqualTo(Integer value) {
            addCriterion("offerid =", value, "offerid");
            return (Criteria) this;
        }

        public Criteria andOfferidNotEqualTo(Integer value) {
            addCriterion("offerid <>", value, "offerid");
            return (Criteria) this;
        }

        public Criteria andOfferidGreaterThan(Integer value) {
            addCriterion("offerid >", value, "offerid");
            return (Criteria) this;
        }

        public Criteria andOfferidGreaterThanOrEqualTo(Integer value) {
            addCriterion("offerid >=", value, "offerid");
            return (Criteria) this;
        }

        public Criteria andOfferidLessThan(Integer value) {
            addCriterion("offerid <", value, "offerid");
            return (Criteria) this;
        }

        public Criteria andOfferidLessThanOrEqualTo(Integer value) {
            addCriterion("offerid <=", value, "offerid");
            return (Criteria) this;
        }

        public Criteria andOfferidIn(List<Integer> values) {
            addCriterion("offerid in", values, "offerid");
            return (Criteria) this;
        }

        public Criteria andOfferidNotIn(List<Integer> values) {
            addCriterion("offerid not in", values, "offerid");
            return (Criteria) this;
        }

        public Criteria andOfferidBetween(Integer value1, Integer value2) {
            addCriterion("offerid between", value1, value2, "offerid");
            return (Criteria) this;
        }

        public Criteria andOfferidNotBetween(Integer value1, Integer value2) {
            addCriterion("offerid not between", value1, value2, "offerid");
            return (Criteria) this;
        }

        public Criteria andMixrateIsNull() {
            addCriterion("mixrate is null");
            return (Criteria) this;
        }

        public Criteria andMixrateIsNotNull() {
            addCriterion("mixrate is not null");
            return (Criteria) this;
        }

        public Criteria andMixrateEqualTo(Integer value) {
            addCriterion("mixrate =", value, "mixrate");
            return (Criteria) this;
        }

        public Criteria andMixrateNotEqualTo(Integer value) {
            addCriterion("mixrate <>", value, "mixrate");
            return (Criteria) this;
        }

        public Criteria andMixrateGreaterThan(Integer value) {
            addCriterion("mixrate >", value, "mixrate");
            return (Criteria) this;
        }

        public Criteria andMixrateGreaterThanOrEqualTo(Integer value) {
            addCriterion("mixrate >=", value, "mixrate");
            return (Criteria) this;
        }

        public Criteria andMixrateLessThan(Integer value) {
            addCriterion("mixrate <", value, "mixrate");
            return (Criteria) this;
        }

        public Criteria andMixrateLessThanOrEqualTo(Integer value) {
            addCriterion("mixrate <=", value, "mixrate");
            return (Criteria) this;
        }

        public Criteria andMixrateIn(List<Integer> values) {
            addCriterion("mixrate in", values, "mixrate");
            return (Criteria) this;
        }

        public Criteria andMixrateNotIn(List<Integer> values) {
            addCriterion("mixrate not in", values, "mixrate");
            return (Criteria) this;
        }

        public Criteria andMixrateBetween(Integer value1, Integer value2) {
            addCriterion("mixrate between", value1, value2, "mixrate");
            return (Criteria) this;
        }

        public Criteria andMixrateNotBetween(Integer value1, Integer value2) {
            addCriterion("mixrate not between", value1, value2, "mixrate");
            return (Criteria) this;
        }

        public Criteria andTartgetsubsIsNull() {
            addCriterion("tartgetsubs is null");
            return (Criteria) this;
        }

        public Criteria andTartgetsubsIsNotNull() {
            addCriterion("tartgetsubs is not null");
            return (Criteria) this;
        }

        public Criteria andTartgetsubsEqualTo(String value) {
            addCriterion("tartgetsubs =", value, "tartgetsubs");
            return (Criteria) this;
        }

        public Criteria andTartgetsubsNotEqualTo(String value) {
            addCriterion("tartgetsubs <>", value, "tartgetsubs");
            return (Criteria) this;
        }

        public Criteria andTartgetsubsGreaterThan(String value) {
            addCriterion("tartgetsubs >", value, "tartgetsubs");
            return (Criteria) this;
        }

        public Criteria andTartgetsubsGreaterThanOrEqualTo(String value) {
            addCriterion("tartgetsubs >=", value, "tartgetsubs");
            return (Criteria) this;
        }

        public Criteria andTartgetsubsLessThan(String value) {
            addCriterion("tartgetsubs <", value, "tartgetsubs");
            return (Criteria) this;
        }

        public Criteria andTartgetsubsLessThanOrEqualTo(String value) {
            addCriterion("tartgetsubs <=", value, "tartgetsubs");
            return (Criteria) this;
        }

        public Criteria andTartgetsubsLike(String value) {
            addCriterion("tartgetsubs like", value, "tartgetsubs");
            return (Criteria) this;
        }

        public Criteria andTartgetsubsNotLike(String value) {
            addCriterion("tartgetsubs not like", value, "tartgetsubs");
            return (Criteria) this;
        }

        public Criteria andTartgetsubsIn(List<String> values) {
            addCriterion("tartgetsubs in", values, "tartgetsubs");
            return (Criteria) this;
        }

        public Criteria andTartgetsubsNotIn(List<String> values) {
            addCriterion("tartgetsubs not in", values, "tartgetsubs");
            return (Criteria) this;
        }

        public Criteria andTartgetsubsBetween(String value1, String value2) {
            addCriterion("tartgetsubs between", value1, value2, "tartgetsubs");
            return (Criteria) this;
        }

        public Criteria andTartgetsubsNotBetween(String value1, String value2) {
            addCriterion("tartgetsubs not between", value1, value2, "tartgetsubs");
            return (Criteria) this;
        }

        public Criteria andSourcetypeIsNull() {
            addCriterion("sourcetype is null");
            return (Criteria) this;
        }

        public Criteria andSourcetypeIsNotNull() {
            addCriterion("sourcetype is not null");
            return (Criteria) this;
        }

        public Criteria andSourcetypeEqualTo(Integer value) {
            addCriterion("sourcetype =", value, "sourcetype");
            return (Criteria) this;
        }

        public Criteria andSourcetypeNotEqualTo(Integer value) {
            addCriterion("sourcetype <>", value, "sourcetype");
            return (Criteria) this;
        }

        public Criteria andSourcetypeGreaterThan(Integer value) {
            addCriterion("sourcetype >", value, "sourcetype");
            return (Criteria) this;
        }

        public Criteria andSourcetypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("sourcetype >=", value, "sourcetype");
            return (Criteria) this;
        }

        public Criteria andSourcetypeLessThan(Integer value) {
            addCriterion("sourcetype <", value, "sourcetype");
            return (Criteria) this;
        }

        public Criteria andSourcetypeLessThanOrEqualTo(Integer value) {
            addCriterion("sourcetype <=", value, "sourcetype");
            return (Criteria) this;
        }

        public Criteria andSourcetypeIn(List<Integer> values) {
            addCriterion("sourcetype in", values, "sourcetype");
            return (Criteria) this;
        }

        public Criteria andSourcetypeNotIn(List<Integer> values) {
            addCriterion("sourcetype not in", values, "sourcetype");
            return (Criteria) this;
        }

        public Criteria andSourcetypeBetween(Integer value1, Integer value2) {
            addCriterion("sourcetype between", value1, value2, "sourcetype");
            return (Criteria) this;
        }

        public Criteria andSourcetypeNotBetween(Integer value1, Integer value2) {
            addCriterion("sourcetype not between", value1, value2, "sourcetype");
            return (Criteria) this;
        }

        public Criteria andIdredirectIsNull() {
            addCriterion("idredirect is null");
            return (Criteria) this;
        }

        public Criteria andIdredirectIsNotNull() {
            addCriterion("idredirect is not null");
            return (Criteria) this;
        }

        public Criteria andIdredirectEqualTo(Integer value) {
            addCriterion("idredirect =", value, "idredirect");
            return (Criteria) this;
        }

        public Criteria andIdredirectNotEqualTo(Integer value) {
            addCriterion("idredirect <>", value, "idredirect");
            return (Criteria) this;
        }

        public Criteria andIdredirectGreaterThan(Integer value) {
            addCriterion("idredirect >", value, "idredirect");
            return (Criteria) this;
        }

        public Criteria andIdredirectGreaterThanOrEqualTo(Integer value) {
            addCriterion("idredirect >=", value, "idredirect");
            return (Criteria) this;
        }

        public Criteria andIdredirectLessThan(Integer value) {
            addCriterion("idredirect <", value, "idredirect");
            return (Criteria) this;
        }

        public Criteria andIdredirectLessThanOrEqualTo(Integer value) {
            addCriterion("idredirect <=", value, "idredirect");
            return (Criteria) this;
        }

        public Criteria andIdredirectIn(List<Integer> values) {
            addCriterion("idredirect in", values, "idredirect");
            return (Criteria) this;
        }

        public Criteria andIdredirectNotIn(List<Integer> values) {
            addCriterion("idredirect not in", values, "idredirect");
            return (Criteria) this;
        }

        public Criteria andIdredirectBetween(Integer value1, Integer value2) {
            addCriterion("idredirect between", value1, value2, "idredirect");
            return (Criteria) this;
        }

        public Criteria andIdredirectNotBetween(Integer value1, Integer value2) {
            addCriterion("idredirect not between", value1, value2, "idredirect");
            return (Criteria) this;
        }

        public Criteria andDeleteflagIsNull() {
            addCriterion("deleteflag is null");
            return (Criteria) this;
        }

        public Criteria andDeleteflagIsNotNull() {
            addCriterion("deleteflag is not null");
            return (Criteria) this;
        }

        public Criteria andDeleteflagEqualTo(Integer value) {
            addCriterion("deleteflag =", value, "deleteflag");
            return (Criteria) this;
        }

        public Criteria andDeleteflagNotEqualTo(Integer value) {
            addCriterion("deleteflag <>", value, "deleteflag");
            return (Criteria) this;
        }

        public Criteria andDeleteflagGreaterThan(Integer value) {
            addCriterion("deleteflag >", value, "deleteflag");
            return (Criteria) this;
        }

        public Criteria andDeleteflagGreaterThanOrEqualTo(Integer value) {
            addCriterion("deleteflag >=", value, "deleteflag");
            return (Criteria) this;
        }

        public Criteria andDeleteflagLessThan(Integer value) {
            addCriterion("deleteflag <", value, "deleteflag");
            return (Criteria) this;
        }

        public Criteria andDeleteflagLessThanOrEqualTo(Integer value) {
            addCriterion("deleteflag <=", value, "deleteflag");
            return (Criteria) this;
        }

        public Criteria andDeleteflagIn(List<Integer> values) {
            addCriterion("deleteflag in", values, "deleteflag");
            return (Criteria) this;
        }

        public Criteria andDeleteflagNotIn(List<Integer> values) {
            addCriterion("deleteflag not in", values, "deleteflag");
            return (Criteria) this;
        }

        public Criteria andDeleteflagBetween(Integer value1, Integer value2) {
            addCriterion("deleteflag between", value1, value2, "deleteflag");
            return (Criteria) this;
        }

        public Criteria andDeleteflagNotBetween(Integer value1, Integer value2) {
            addCriterion("deleteflag not between", value1, value2, "deleteflag");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}